import React, { Component } from 'react'

export default class CartItem extends Component {
  render() {
    let { item } = this.props
    return (
      <li>
        <span>id：{item.id}</span>
        <span> 商品名称：{item.name}</span>
        <span> 单价：{item.price}</span>
        <span> 数量：{item.num}</span>
        <span> 小计：{item.num * item.price}</span>
      </li>
    )
  }
}
